<%@ include file="/WEB-INF/jsp/includes/include.jsp" %>
<%@ include file="/WEB-INF/jsp/includes/header.jsp" %>
<h2>Request Seller Account</h2>
<p>To sell on CUbooks, you need to be registered on CUbooks as a valid buyer and request your account to be upgraded to seller account.</p>
<p>Shortly after placing request you will be notified via email by the CUbooks administrator if your account has been upgraded.</p>
<c:if test="${currentUser.requestSeller != 1}">
<p>Place request:</p>
<c:url var="actionUrl" value="/user/request-seller-success.html" />
<form:form modelAttribute="user" action="${actionUrl}">
	<fieldset class="row1">
		<div class="form-pair">	
			<div class="form-item">
				<label for="password">I'm requesting my account to be upgraded to Seller account:</label>
			</div>
			<div class="form-value">
 			   <form:radiobutton path="requestSeller" value="1" />YES
 			   <form:radiobutton path="requestSeller" value="0" />NO
 			   <br /><form:errors path="requestSeller" cssClass="errors" />
 			</div>
		</div>
	</fieldset>
	<fieldset class="form-submit">
		<div class="form-submit-buttons">
			<input type="submit" class="input-submit" name="submit" value="Place request" />
		</div>
	</fieldset>
</form:form>
</c:if>
<c:if test="${currentUser.requestSeller == 1}">
<p class="error">You have already requested seller account. Please wait for the approval from the CUbooks administrator.</p>
</c:if>
<%@ include file="/WEB-INF/jsp/includes/footer.jsp" %>